package com.yuan.job;


public class JobThread {
    static long count = 0;

    public static void main(String[] args) {
            Runnable runnable = new Runnable() {
                @Override
                public void run() {
                    while (true) {
                        try {
                            Thread.sleep(1000);
                            count++;
                            System.out.println(count);
                        } catch (Exception e) {

                        }
                    }
                }
            };
            Thread thread = new Thread(runnable);
            thread.start();
    }

}
